﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="url_edit.aspx.cs" Inherits="AnyOffice.general.system.url.url_edit" %>
<HTML>
	<HEAD>
		<title>编辑网址</title>
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
function CheckForm()
{
	if(document.Form1.txtUrlNo.value == "")
  {
	alert("序号不能为空！");
	document.Form1.txtUrlNo.focus();
    return false;
  }
  
	if(!checkIsInteger(document.Form1.txtUrlNo.value))
  {
	alert("序号必须为整数！");
	document.Form1.txtUrlNo.focus();
    return false;
  }
  
   if(document.Form1.txtUrlDesc.value=="")
   { 
	 alert("说明不能为空！");
	 document.Form1.txtUrlDesc.focus();
     return (false);
   }
   if(document.Form1.txtUrl.value=="")
   { 
     alert("网址不能为空！");
     document.Form1.txtUrl.focus();
     return (false);
   }
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/edit.gif" align="absMiddle" width="20"><span class="big3"> 
							编辑网址</span>
					</td>
				</tr>
			</table>
			<asp:Panel id="pnlMain" runat="server">
			<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3"
				align="center">
				<TBODY>
					<tr>
						<td nowrap class="TableData">序号：</td>
						<td nowrap class="TableData">
							<asp:TextBox id="txtUrlNo" runat="server" CssClass="BigInput" Columns="6" MaxLength="4"></asp:TextBox>
						</td>
					<tr>
						<td nowrap class="TableData">说明：</td>
						<td nowrap class="TableData">
							<asp:TextBox id="txtUrlDesc" runat="server" CssClass="BigInput" Columns="25" MaxLength="200"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">网址：</td>
						<td nowrap class="TableData">
							<asp:TextBox id="txtUrl" runat="server" CssClass="BigInput" Columns="25" MaxLength="200">http://</asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableControl" colspan="2" align="center">
							<input type="submit" onclick="return CheckForm();" value="确定" class="BigButton" name="button">
							<input type="button" value="返回" class="BigButton" onclick="location='index.aspx'">
						</td>
					</tr>
				</TBODY>
			</table>
			<br>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
